\hypertarget{class_qt_soap_array_iterator}{}\section{Qt\+Soap\+Array\+Iterator Class Reference}
\label{class_qt_soap_array_iterator}\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}


The \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} class provides an iterator for traversing the items in a \mbox{\hyperlink{class_qt_soap_array}{Qt\+Soap\+Array}}.  




{\ttfamily \#include $<$qtsoap.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_qt_soap_array_iterator_a2581a93180335dea22d8c11e232904da}{Qt\+Soap\+Array\+Iterator}} (\mbox{\hyperlink{class_qt_soap_array}{Qt\+Soap\+Array}} \&)
\item 
\mbox{\hyperlink{class_qt_soap_array_iterator_afd6711908a94499bf41501825548db56}{Qt\+Soap\+Array\+Iterator}} (const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&copy)
\item 
\mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \& \mbox{\hyperlink{class_qt_soap_array_iterator_a58b4799f64a1d6bf971b6cc0536b479e}{operator=}} (const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&j)
\item 
\mbox{\hyperlink{class_qt_soap_array_iterator_a3f77d993593062a4af39836d3dde62dd}{$\sim$\+Qt\+Soap\+Array\+Iterator}} ()
\item 
int \mbox{\hyperlink{class_qt_soap_array_iterator_abac3ba397693146abde29bd67608bae1}{pos}} () const
\item 
void \mbox{\hyperlink{class_qt_soap_array_iterator_af6e6e7373d176127dd734cb4c19c5fdb}{pos}} (int $\ast$pos0, int $\ast$pos1=0, int $\ast$pos2=0, int $\ast$pos3=0, int $\ast$pos4=0) const
\item 
\mbox{\hyperlink{class_qt_soap_type}{Qt\+Soap\+Type}} $\ast$ \mbox{\hyperlink{class_qt_soap_array_iterator_aaf9f8f6b2c10867889f18f5ca7f2f379}{data}} ()
\item 
const \mbox{\hyperlink{class_qt_soap_type}{Qt\+Soap\+Type}} $\ast$ \mbox{\hyperlink{class_qt_soap_array_iterator_a7c7a7589b11e80117564e0a4191a6f7e}{current}} () const
\item 
void \mbox{\hyperlink{class_qt_soap_array_iterator_aa3023e339b754a23f908b734e450310c}{operator++}} ()
\item 
bool \mbox{\hyperlink{class_qt_soap_array_iterator_a02fd0f2e5c0a87405b6c8ce4455579e5}{operator!=}} (const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&j) const
\item 
bool \mbox{\hyperlink{class_qt_soap_array_iterator_ad3ef98056c1f81043e9ca5aff14cec1f}{operator==}} (const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&j) const
\item 
bool \mbox{\hyperlink{class_qt_soap_array_iterator_af74296777226aacd505b7969ad4e7e54}{at\+End}} () const
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} class provides an iterator for traversing the items in a \mbox{\hyperlink{class_qt_soap_array}{Qt\+Soap\+Array}}. 

The items are traversed in ascending order of index position, depth first.


\begin{DoxyCode}
\textcolor{comment}{// Construct a 2x2 array of Strings.}
\mbox{\hyperlink{class_qt_soap_array}{QtSoapArray}} array(\textcolor{stringliteral}{"Array of strings"}, String, 2, 2);
array.\mbox{\hyperlink{class_qt_soap_array_a7be8113dc4c686e1ea243b988269f50d}{insert}}(0, 0, \textcolor{keyword}{new} \mbox{\hyperlink{class_qt_soap_simple_type}{QtSoapSimpleType}}(Q4SoapQName(\textcolor{stringliteral}{"top left"}), \textcolor{stringliteral}{"top left"});
array.\mbox{\hyperlink{class_qt_soap_array_a7be8113dc4c686e1ea243b988269f50d}{insert}}(0, 1, \textcolor{keyword}{new} \mbox{\hyperlink{class_qt_soap_simple_type}{QtSoapSimpleType}}(Q4SoapQName(\textcolor{stringliteral}{"top right"}), \textcolor{stringliteral}{"top right"});
array.\mbox{\hyperlink{class_qt_soap_array_a7be8113dc4c686e1ea243b988269f50d}{insert}}(1, 0, \textcolor{keyword}{new} \mbox{\hyperlink{class_qt_soap_simple_type}{QtSoapSimpleType}}(Q4SoapQName(\textcolor{stringliteral}{"bottom left"}), \textcolor{stringliteral}{"bottom left"});
array.\mbox{\hyperlink{class_qt_soap_array_a7be8113dc4c686e1ea243b988269f50d}{insert}}(1, 1, \textcolor{keyword}{new} \mbox{\hyperlink{class_qt_soap_simple_type}{QtSoapSimpleType}}(Q4SoapQName(\textcolor{stringliteral}{"bottom right"}), \textcolor{stringliteral}{"bottom right"});

\textcolor{comment}{// Traverse all items.}
\mbox{\hyperlink{class_qt_soap_array_iterator}{QtSoapArrayIterator}} it(array);
\textcolor{keywordflow}{while} (!it.current()) \{

  \textcolor{comment}{// Find the position of the current element.}
  \textcolor{keywordtype}{int} pos1, pos2;
  it.pos(&pos1, &pos2);

  qDebug() << \textcolor{stringliteral}{"Position ("} << pos1 << \textcolor{stringliteral}{", "} << pos2 << \textcolor{stringliteral}{") is "}
           << \textcolor{stringliteral}{"the "} << it.current()->toString() << \textcolor{stringliteral}{" coordinate of the grid."} << endl;

  ++it;
\}
\end{DoxyCode}
 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_qt_soap_array_iterator_a2581a93180335dea22d8c11e232904da}\label{class_qt_soap_array_iterator_a2581a93180335dea22d8c11e232904da}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{Qt\+Soap\+Array\+Iterator()}{QtSoapArrayIterator()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Qt\+Soap\+Array\+Iterator\+::\+Qt\+Soap\+Array\+Iterator (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_qt_soap_array}{Qt\+Soap\+Array}} \&}]{array }\end{DoxyParamCaption})}

Constructs a \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} on {\itshape array}, initializing the iterator to point to the first element. \mbox{\Hypertarget{class_qt_soap_array_iterator_afd6711908a94499bf41501825548db56}\label{class_qt_soap_array_iterator_afd6711908a94499bf41501825548db56}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{Qt\+Soap\+Array\+Iterator()}{QtSoapArrayIterator()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Qt\+Soap\+Array\+Iterator\+::\+Qt\+Soap\+Array\+Iterator (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&}]{copy }\end{DoxyParamCaption})}

Constructs a \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} that is a copy of {\itshape copy}. \mbox{\Hypertarget{class_qt_soap_array_iterator_a3f77d993593062a4af39836d3dde62dd}\label{class_qt_soap_array_iterator_a3f77d993593062a4af39836d3dde62dd}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!````~Qt\+Soap\+Array\+Iterator@{$\sim$\+Qt\+Soap\+Array\+Iterator}}
\index{````~Qt\+Soap\+Array\+Iterator@{$\sim$\+Qt\+Soap\+Array\+Iterator}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{$\sim$\+Qt\+Soap\+Array\+Iterator()}{~QtSoapArrayIterator()}}
{\footnotesize\ttfamily Qt\+Soap\+Array\+Iterator\+::$\sim$\+Qt\+Soap\+Array\+Iterator (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Destructs the \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}}. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_qt_soap_array_iterator_af74296777226aacd505b7969ad4e7e54}\label{class_qt_soap_array_iterator_af74296777226aacd505b7969ad4e7e54}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!at\+End@{at\+End}}
\index{at\+End@{at\+End}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{at\+End()}{atEnd()}}
{\footnotesize\ttfamily bool Qt\+Soap\+Array\+Iterator\+::at\+End (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

Returns false if this iterator points to an item in the array, otherwise true. \mbox{\Hypertarget{class_qt_soap_array_iterator_a7c7a7589b11e80117564e0a4191a6f7e}\label{class_qt_soap_array_iterator_a7c7a7589b11e80117564e0a4191a6f7e}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!current@{current}}
\index{current@{current}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{current()}{current()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{class_qt_soap_type}{Qt\+Soap\+Type}} $\ast$ Qt\+Soap\+Array\+Iterator\+::current (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

Returns a reference to the item that the iterator is currently pointing to. \mbox{\Hypertarget{class_qt_soap_array_iterator_aaf9f8f6b2c10867889f18f5ca7f2f379}\label{class_qt_soap_array_iterator_aaf9f8f6b2c10867889f18f5ca7f2f379}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!data@{data}}
\index{data@{data}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{data()}{data()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qt_soap_type}{Qt\+Soap\+Type}} $\ast$ Qt\+Soap\+Array\+Iterator\+::data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Returns a reference to the item that the iterator is currently pointing to. \mbox{\Hypertarget{class_qt_soap_array_iterator_a02fd0f2e5c0a87405b6c8ce4455579e5}\label{class_qt_soap_array_iterator_a02fd0f2e5c0a87405b6c8ce4455579e5}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
{\footnotesize\ttfamily bool Qt\+Soap\+Array\+Iterator\+::operator!= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&}]{j }\end{DoxyParamCaption}) const}

Returns true if this Iterator\textquotesingle{}s position is not equal to the position of {\itshape j}; otherwise returns false. \mbox{\Hypertarget{class_qt_soap_array_iterator_aa3023e339b754a23f908b734e450310c}\label{class_qt_soap_array_iterator_aa3023e339b754a23f908b734e450310c}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!operator++@{operator++}}
\index{operator++@{operator++}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{operator++()}{operator++()}}
{\footnotesize\ttfamily void Qt\+Soap\+Array\+Iterator\+::operator++ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Moves the iterator position to the next item in the array. \mbox{\Hypertarget{class_qt_soap_array_iterator_a58b4799f64a1d6bf971b6cc0536b479e}\label{class_qt_soap_array_iterator_a58b4799f64a1d6bf971b6cc0536b479e}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!operator=@{operator=}}
\index{operator=@{operator=}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{operator=()}{operator=()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \& Qt\+Soap\+Array\+Iterator\+::operator= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&}]{copy }\end{DoxyParamCaption})}

Assignment operator of \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}}. Makes this iterator a copy of {\itshape copy}. \mbox{\Hypertarget{class_qt_soap_array_iterator_ad3ef98056c1f81043e9ca5aff14cec1f}\label{class_qt_soap_array_iterator_ad3ef98056c1f81043e9ca5aff14cec1f}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!operator==@{operator==}}
\index{operator==@{operator==}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool Qt\+Soap\+Array\+Iterator\+::operator== (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_qt_soap_array_iterator}{Qt\+Soap\+Array\+Iterator}} \&}]{j }\end{DoxyParamCaption}) const}

Returns true if this Iterator\textquotesingle{}s position is equal to the position of {\itshape j}; otherwise returns false. \mbox{\Hypertarget{class_qt_soap_array_iterator_abac3ba397693146abde29bd67608bae1}\label{class_qt_soap_array_iterator_abac3ba397693146abde29bd67608bae1}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!pos@{pos}}
\index{pos@{pos}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{pos()}{pos()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily int Qt\+Soap\+Array\+Iterator\+::pos (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns the ordinal position of the iterator. Works for arrays of any dimension, but is only useful for one dimensional arrays. \mbox{\Hypertarget{class_qt_soap_array_iterator_af6e6e7373d176127dd734cb4c19c5fdb}\label{class_qt_soap_array_iterator_af6e6e7373d176127dd734cb4c19c5fdb}} 
\index{Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}!pos@{pos}}
\index{pos@{pos}!Qt\+Soap\+Array\+Iterator@{Qt\+Soap\+Array\+Iterator}}
\subsubsection{\texorpdfstring{pos()}{pos()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Qt\+Soap\+Array\+Iterator\+::pos (\begin{DoxyParamCaption}\item[{int $\ast$}]{pos0,  }\item[{int $\ast$}]{pos1 = {\ttfamily 0},  }\item[{int $\ast$}]{pos2 = {\ttfamily 0},  }\item[{int $\ast$}]{pos3 = {\ttfamily 0},  }\item[{int $\ast$}]{pos4 = {\ttfamily 0} }\end{DoxyParamCaption}) const}

Populates the arguments {\itshape pos0}, {\itshape pos1}, {\itshape pos2}, {\itshape pos3} and {\itshape pos4} with the coordinate of the current position of the iterator. For a one dimensional array, only {\itshape pos0} is populated. For a two dimensional array, {\itshape pos0} and {\itshape pos1} are populated, and so on.

Any of the arguments that are 0-\/pointers are ignored. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/soap/qtsoap.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/soap/qtsoap.\+cpp\end{DoxyCompactItemize}
